package com.chengzhi.disruptor.heigh;

import com.lmax.disruptor.EventHandler;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.concurrent.atomic.AtomicLong;

public class TradeHandler4 implements EventHandler<Trade> {
    @Override
    public void onEvent(Trade event, long sequence, boolean endOfBatch) throws Exception {
        System.out.println(LocalDateTime.now() + "  [op:TradeHandler4]------------onEvent " + event.toString());
        event.setPrice(new BigDecimal("44"));
    }
}
